package com.ws.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.ws.bean.Vehicle;
import com.ws.bean.VehicoleBrand;
import com.ws.util.Page;
@Mapper
public interface VehicleDao {

	List<Vehicle> getAllVehicles(@Param("vehicle") Vehicle vehicle,@Param("page") Page page);

	int addVehicle(Vehicle vehicle);

	int delVehicle(Integer vehicleid);

	int editVehicle(Vehicle vehicle);

	int getCount(@Param("vehicle") Vehicle vehicle);

	List<VehicoleBrand> getAllBrands();

}
